//
//  HomeCollectionCell.m
//  CenturyCity
//
//  Created by beisheng03 on 2017/11/22.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "HomeCollectionCell.h"

@interface HomeCollectionCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *bottomLabel;
@end

@implementation HomeCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.bottomLabel.font = MYFONT(14);
    
//    self.bottomLabel.backgroundColor = [UIColor redColor];
//
////    self.contentView.backgroundColor = [UIColor whiteColor];
    
    self.contentView.backgroundColor = [UIColor whiteColor];

}

- (void)setModel:(NSDictionary *)model{
    
    _model = model;
    
//    [self.imageView sd_setImageWithURL:[NSURL URLWithString:_model[@"image"]]];
    
//    if (self.idex.item == 2 || self.idex.item == 3) {
//
//        if (self.idex.item == 2) {
//
//            self.imageView.image = [UIImage imageNamed:@"homeTop_003"];
//
//        } else {
//
//            self.imageView.image = [UIImage imageNamed:@"homeTop_99"];
//
//        }
//
//    }else{
//
//
//
//
//    }
    
    
      self.imageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"homeTop2_00%ld",self.idex.item]];
    
    self.bottomLabel.text = _model[@"title"];
    
    
    
}

@end
